function init() {
	_initHeader();
	
	$("#refreshLanguage").click(function(e) {
		alert("Refresh Language");
		device.getLanguage(getLanguageSuccessCallback);
	});
	$("#refreshNetwork").click(function(e) {
		alert("Refresh NetworkType");
		device.getNetworkType(getNetworkTypeSuccessCallback);
	});
	
	 commonProgress("Getting device information..", false, null, "white");
	
	deviceInfo();
	device.getLanguage(getLanguageSuccessCallback);
	device.getNetworkType(getNetworkTypeSuccessCallback);
}

function isTablet() {
	var deviceType;
	
	if(device.isTablet == false)
		deviceType = "Phone";
	else
		deviceType = "Tablet";
	
	return deviceType;
}

function deviceInfo() {
	var dpiName;
	
	if(device.platformName == "Android")
		dpiName = device.getDeviceDpi();
	else
		dpiName = "Device.getDeviceDpi is not supported on " + device.platformName + " Platform.";
	
	$("#carrier").text(device.carrier);
	$("#deviceModel").text(device.deviceModel);
	$("#deviceId").text(device.deviceId);
	$("#dpi").text(dpiName);
	$("#isTablet").text(isTablet());
	$("#mobileEquipmentId").text(device.mobileEquipmentId);
	$("#osName").text(device.osName);
	$("#platformName").text(device.platformName);
	$("#platform").text(device.platform);
}

function getLanguageSuccessCallback(language) {
	$("#languageInfo").text(language);
	platformUIComponent.dismissProgressDialog();
}

function getNetworkTypeSuccessCallback(networkType) {
	$("#networkInfo").text(networkType);
	platformUIComponent.dismissProgressDialog();
}